<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Edit a Driver</title>
    </h:head>
    <h:body>
        <f:view>
            <br/>
            <h:panelGrid border="1" columns="2">
                <f:facet name="header">
                    <h:outputText value="Enter your information"/>
                </f:facet>
                <h:outputText value="Driver Name"/>
                <h:inputText value="#{driver.name}"/>
                <h:outputText value="Driver E-Mail"/>
                <h:inputText value="#{driver.email}"/>
                <h:outputText value="Driver Phone Number"/>
                <h:inputText value="#{driver.phoneNumber}"/>
            </h:panelGrid>
            <br/>
            <h:commandButton value="Save" action="#{driver.saveDriver}" />
            <h:commandButton value="Cancel" action="driverList.xhtml" />
        </f:view>
    </h:body>
</html>

